﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PDX.Notification
{
    /// <summary>
    /// A notification transaction.
    /// </summary>
    public class Transaction : IDisposable
    {
        /// <summary>
        /// Occurs when the transaction completes
        /// </summary>
        public event EventHandler<EventArgs> Completed = delegate { };

        /// <summary>
        /// Raises the <see cref="Completed"/> event.
        /// </summary>
        public void Dispose()
        {
            Completed(this, EventArgs.Empty);
        }
    }
}
